Skip to content

Conversation

@eaglus
Copy link
Contributor

@eaglus eaglus commented Nov 17, 2018

Add reexport of internal components (required for correct import from es/index.js module, in webpack4 to make treeshaking work).

Importing something directly from '/lib/axes/' or something else imports specified module from /node_modules/react-stockcharts/lib/* (common js modules build), not from /node_modules/react-stockcharts/es/lib/.
This disables tree-shaking optimizationsI've add re-exports to root index.js, because for import {LineSeries} from 'react-stockcharts', webpack uses react-stockcharts/es/lib/
files, with es6-style exports/imports, and this makes tree-shaking possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant